<?php


namespace app\common\model\lottery;


use app\common\model\BaseModel;
use app\store\model\UploadFile;

class Goods extends BaseModel
{
    protected $name = 'lottery_goods';

    public function logo()
    {
        return $this->hasOne(UploadFile::class, 'file_id', 'logo_id')
            ->field('file_id, storage, file_url, file_name');
    }
}